<!-- Phan khai bao bien cuc bo-->
<?php
if ($v_recordtype_filter!=""){
	$v_handle_agency_id = $arr_single_recordtype['FK_HANDLE_AGENCY'];
	$v_receiver_id = $arr_single_recordtype['FK_RECEIVER'];
	$v_handler_id = $arr_single_recordtype['FK_HANDLER'];
}else{
	$v_handle_agency_id = 0;
	$v_receiver_id = 0;
	$v_handler_id = 0;
}
$v_staff_id = $_SESSION['staff_id'];
$v_staff_name = _get_item_attr_by_id($_SESSION['arr_all_staff'], $v_staff_id, 'name');
$v_handle_agency_name = _get_item_attr_by_id($_SESSION['arr_all_unit'], $v_handle_agency_id , 'name');

$v_recordtype_filter = $_SESSION['onegate_current_recordtype'];
if(isset($_REQUEST['hdn_recordtype_filter'])){
	$v_recordtype_filter = $_REQUEST['hdn_recordtype_filter'];
}
$v_record_id_list = "";
if(isset($_REQUEST['hdn_record_id_list'])){
	$v_record_id_list = $_REQUEST['hdn_record_id_list'];
}
$v_received_date = date("d/m/Y");
?>
<!--bang chua tieu de cua form-->
<form action="index.php" method="post" name="f_dsp_record_for_handover">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
	<tr class="large_title">	
		<td><?php echo CONST_LABEL_TAX_NHAN_BLAI_TU_CQUAN;?></td>
	</tr>
</table>
<!-- Bat cac phim: F12=true; Insert=false; Delete=false, ESC=true; Enter=true -->
<div id="hotkey" onKeyDown="javascript:process_hot_key(true,false,false,true,true);">
<!--bang chua cac text box de nhap du lieu-->
<table width="100%" class="form_table1" cellpadding="0" cellspacing="0">
	<col width="30%"><col width="60%"><col width="10%">

	<input type="hidden" name="fuseaction" value="UPDATE_CATE" >
	<input type="hidden" name="hdn_record_id" value="10">
	<input type="hidden" name="hdn_record_id_list" value="<?php echo $v_record_id_list?>">
	<tr >
		<td class="normal_label"><?php echo CONST_NOTIFY_TAX_LABEL_RECORDTYPE_NAME; ?></td>
		<td><?php echo $v_name_of_recordtype_id;?></td>
	</tr>
	<tr >
		<td class="normal_label"><?php echo CONST_NOTIFY_TAX_LABEL_RECORD_C_CODE; ?></td>
		<td><?php echo $v_c_code;?>
		</td>
	</tr>
	<tr >
		<td class="normal_label"><?php echo _CONST_WORK_DATE_LABEL_THUE; ?></td>
		<td>
			<input class="normal_date_textbox" name="txt_handover_receive_date" type="text" value="<?php echo $v_received_date; ?>" optional="true" isdate="true" message="<?php echo _CONST_WORK_DATE_MESSAGE;?>" onKeyDown="change_focus(document.forms(0),this)">
		</td>
	</tr>
	<tr style="display:none">
		<td class="normal_label"><?php echo CONST_RECORD_HANDOVER_HANDLER_LABEL; ?> <small class="normal_starmark">*</small></td>
		<td><input class="normal_textbox" name="txt_handover_handler" type="text" <?php echo $v_readonly; ?> style="width:100%" value="<?php echo $v_staff_name; //ten nhan ven ban giao?>" readonly optional="true" onKeyDown="change_focus(document.forms(0),this)"></td>
	</tr>
	<tr style="display:none">
		<td class="normal_label"><?php echo CONST_RECORD_HANDOVER_RECEIVE_UNIT_LABEL; ?></td>
		<td><input class="normal_textbox" name="txt_hanover_recive_unit" type="text" <?php echo $v_readonly; ?> style="width:100%" value="<?php echo $v_handle_agency_name; ?>" readonly optional="true" onKeyDown="change_focus(document.forms(0),this)"></td>
	</tr>
	<tr>
		<td class="normal_label"><?php echo CONST_NOTIFY_TAX_LABEL_PERSON; ?></td>
		<td><?php echo $v_staff_name; ?></td>
	</tr>
	<tr height="5px"><td>&nbsp;</td></tr>
</table>
<!--bang chua cac button-->
<table width="100%" >
	<tr>
		<td align="center" width="100%" height="40" valign="bottom">
			<input type="button" name="btn_save"  class="normal_button" value="<?php echo CONST_ACCEPT_BUTTON;?>" onClick="btn_update_handover_onclick_2(document.forms(0).hdn_record_id_list,document.forms(0).txt_handover_receive_date); " onKeyDown="change_focus(document.forms(0),this)">
			<input type="button" name="btn_back" class="normal_button" value="<?php echo CONST_NO_ACCEPT_BUTTON;?>" onClick="btn_back_onclick('<?php echo $_GO_BACK?>');" onKeyDown="change_focus(document.forms(0),this)">	
		</td>
	</tr>
</table>					
</div>
</form>
<script language="JavaScript">
	set_focus(document.forms(0));
</script>
